package com.kma.summer2012.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class UserInfo extends Composite {
    interface UserInfoUiBinder extends UiBinder<Widget, UserInfo> {
    }

    private static UserInfoUiBinder ourUiBinder = GWT.create(UserInfoUiBinder.class);

    @UiField
    protected Label name;

    @UiField
    protected Label password;

    public UserInfo() {
        HTMLPanel rootElement = (HTMLPanel) ourUiBinder.createAndBindUi(this);
        initWidget(rootElement);
    }

    public void setName(String name) {
        this.name.setText(name);
    }

    public void setPassword(String password) {
        this.password.setText(password);
    }


}